﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="mybaconrecipeprototype.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:ImageField DataImageUrlField="Photo" HeaderText="Photo">
                    <ControlStyle CssClass="recipeDetailPhoto" />
                </asp:ImageField>
                <asp:BoundField DataField="RecipeName" HeaderText="RecipeName" 
                    SortExpression="RecipeName" />
                <asp:BoundField DataField="Rating" HeaderText="Rating" 
                    SortExpression="Rating" />
                <asp:BoundField DataField="CookingTime" HeaderText="CookingTime" 
                    SortExpression="CookingTime" />
                <asp:BoundField DataField="ShortDescription" HeaderText="ShortDescription" 
                    SortExpression="ShortDescription" />
                <asp:BoundField DataField="Ingredients" HeaderText="Ingredients" 
                    SortExpression="Ingredients" />
                <asp:BoundField DataField="CookingMethod" HeaderText="CookingMethod" 
                    SortExpression="CookingMethod" />
                <asp:BoundField DataField="RecipeSource" HeaderText="RecipeSource" 
                    SortExpression="RecipeSource" />
            </Columns>
            <HeaderStyle CssClass="gridHeader" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:mbrConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:mbrConnectionString.ProviderName %>" 
            SelectCommand="SELECT [RecipeName], [Rating], [CookingTime], [ShortDescription], [Ingredients], [CookingMethod], [Photo], [RecipeSource] FROM [recipes] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="myHyperlink" 
            NavigateUrl="~/list.aspx">&lt;- Back to List of Recipes</asp:HyperLink>
    </p>
    <p><br />
    </p>
</asp:Content>
